//入口文件

import Vue from 'vue'

import VueRouter from 'vue-router'

Vue.use(VueRouter)
//时间转换插件
import moment from 'moment'

Vue.filter('dateFormat',function(dataStr,pattern='YYYY-MM-DD hh:mm:ss'){
    return moment(dataStr).format(pattern)
})

// 安装 图片预览插件
import VuePreview from 'vue-preview'
Vue.use(VuePreview)

import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

import app from './App.vue'

import router from './router'

//import {Header,Swipe,SwipeItem,Button  } from 'mint-ui'
//Vue.component(Header.name, Header)
//Vue.component(Swipe.name, Swipe);
//Vue.component(SwipeItem.name, SwipeItem);
//Vue.component(Button.name, Button);
import MintUI from 'mint-ui'
Vue.use(MintUI)

import 'mint-ui/lib/style.min.css'

var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router
})